<?php
namespace Model\Parser;

use Symfony\Component\DomCrawler\Crawler;

/**
 *
 * @author pahhan
 */
interface ParserListInterface
{
    /**
     * @param \Symfony\Component\DomCrawler\Crawler $crawler
     * @return array Array of Message entities
     */
    public function getMessages(Crawler $crawler);

    /**
     *
     * @param \Symfony\Component\DomCrawler\Crawler $crawler
     * @param string $current_page
     * @return string Url to next page with messages
     */
    public function getNextPageUrl(Crawler $crawler, $current_page = NULL);
}